package com.itmate.chenshiguang.service;

import java.util.List;

import com.itmate.chenshiguang.dao.FamilyDao;
import com.itmate.chenshiguang.entity.FamilyEntity;

public class FamilyService {
	
	private FamilyDao familyDao = new FamilyDao();
	
	public int addFamliy(FamilyEntity f){
		return familyDao.addFamily(f);
		
	}
	
	public int deleteFamily(int id){
		return familyDao.deleteFamily(id);
	}
	
	public int updateFamily(FamilyEntity f){
		return familyDao.updateFamily(f);
	}

	public List<FamilyEntity> selectAllFamily( ){
		return familyDao.selectAllFamily();
	}
	public List<FamilyEntity> selectFamily(String name){
		return familyDao.selectFamily(name);
		
	}
}
